<!doctype html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  
  <meta name="generator" content="Hugo 0.98.0" />

  
  <meta name="description" content="走在通往幸福的路上">
  

  
  <link rel="apple-touch-icon" sizes="180x180" href="https://blog.v5u.win/apple-touch-icon.png">

  
  <link rel="icon" type="image/png" sizes="32x32" href="https://blog.v5u.win/favicon-32x32.png">

  
  <link rel="icon" type="image/png" sizes="16x16" href="https://blog.v5u.win/favicon-16x16.png">

  
  <link rel="manifest" href="https://blog.v5u.win/site.webmanifest">

  
  <link rel="mask-icon" href="https://blog.v5u.win/safari-pinned-tab.svg" color="">

  <meta name="msapplication-TileColor" content="">

  <meta name="theme-color" content="">

  
  <link rel="stylesheet" href="https://blog.v5u.win/css/bootstrap.min.css" />

  
  <title>制作pod library 私有库 | 为吾优</title>
  

  <style>
body {
  min-width: 300px;
}

.custom-navbar {
  margin-bottom: 1em;
  height: 60px;
}

.custom-navbar a {
  display: inline-block; 
  padding: 18px 0;
  margin-right: 1em; 
  font-weight: bold; 
}

.custom-navbar a:hover,
.custom-navbar a:focus {
  text-decoration: none; 
}

@media print {
  .custom-navbar {
    display: none;
  }
}

article {
  padding-bottom: 1em;
}

img {
  max-width: 100%;
}


body {
  background-color: #fff;
}



body {
  color: #212529;
}



a {
  color: #007bff;
}



a:hover,
a:focus {
  color: #0056b3;
}



.custom-navbar {
  background-color: #212529;
}



.custom-navbar a {
  color: rgba(255,255,255,.75);
}



.custom-navbar a:hover,
.custom-navbar a:focus {
  color: rgba(255,255,255,1);
}



.container {
  max-width: 800px;
}





</style>
</head>

<body>
  <nav class="custom-navbar">
  <div class="container">
    
    <a href="/">文章</a>
    
    <a href="/tags/">标签</a>
    
    <a href="/about/">关于</a>
    
    <a href="/index.xml">RSS</a>
    
  </div>
</nav>
  
  <div class="container">
    <article>
      <h1>制作pod library 私有库</h1>
<p>[TOC]</p>
<h2 id="ios组件化之路制作pod-私有库">iOS组件化之路——制作pod 私有库</h2>
<p><a href="https://www.jianshu.com/p/66b63f56b2d5">详细教程点我</a></p>
<ol>
<li>创建远程仓库</li>
<li>本地创建项目 pod lib create MyTest</li>
<li>添加文件到Classes/目录下</li>
<li>在example下执行pod update / pod install，安装依赖 ,失败</li>
<li>pod lib lint &ndash;allow-warnings 验证本地私有库,并忽略警告</li>
<li>pod spec lint &ndash;allow-warnings 验证远端spec，并忽略警告</li>
<li>pod repo push MySpec FFLocalLib.podspec &ndash;allow-warnings 私有库加入MySpec版本控制中心并提交到远端</li>
<li>end</li>
</ol>
<h2 id="制作-pod-公共库">制作 pod 公共库</h2>
<ol>
<li>pod lib create MyTest</li>
<li>添加 code</li>
<li>在 example目录下执行 pod install</li>
<li>校验 pod lib lint</li>
<li>注册设备 和邮箱
pod trunk register <a href="mailto:xxx@xxx.com">xxx@xxx.com</a> &lsquo;my name&rsquo; &ndash;description=&lsquo;my macbook air&rsquo;</li>
<li>邮箱确认注册</li>
<li>提交.podspec pod trunk push MyTest.podspec</li>
<li>搜索自己的库 pod search MyTest 由于墙的原因可能不会马上可以搜到</li>
</ol>
<p><a href="https://www.jianshu.com/p/c94d394f0be7">参考制作自己的cocoapods</a></p>

    </article>
  </div>

  
  
  

  
</body>

</html>